package com.lyl.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lyl.domain.SysRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyl.model.Result;


/**
 * @author lylbell
 * @date 2021-06-22 13:31
 */
    
public interface SysRoleService extends IService<SysRole>{


    boolean isSuperAdmin(Long userId);

    /**
     * 通过用户名分页查询
     * @param page
     * @param name
     * @return
     */
    Page<SysRole> findByPage(Page<SysRole> page, String name);
}
